<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="huoyun" uri="/huoyun"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>我的用户中心</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/theme/css/main.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/theme/css/style_userCenter.css">

<script type="text/javascript"
	src="${pageContext.request.contextPath}/theme/js/jquery-1.6.js"></script>
<style type="text/css">
.listTable {
	border: 1px solid #E8E8E8;
	width: 100%;
}

.listTable th {
	background-color: #F6F6F6;
	border-bottom: 1px solid #F1F1F1;
	line-height: 30px;
	padding-left: 10px;
	text-align: left;
}

.listTable td {
	border-bottom: 1px solid #F1F1F1;
	color: #595959;
	line-height: 28px;
	padding: 3px 10px;
	text-align: left;
}
</style>
</head>
<body>
	<div>
		<jsp:include page="../nav.jsp">
			<jsp:param value="nav_main" name="nav" />
		</jsp:include>
	</div>
	<div class="realCer">
	
	<!--主体部分-->
	<div class="realMain clearfix mt10">
	 <!--左侧菜单-->
	<div class="realLeft" id="meunLeft">
	    <jsp:include page="../leftMenu.jsp">
	    	<jsp:param value="con_nav_main" name="con_nav"/>
	    	<jsp:param value="orderManagement" name="selectMenu"/>
	    </jsp:include>
    </div>
    <!--中由-->
	<div class="realRight ml10">
			<div class="box">
				<div class="tit">订单管理</div>
				<div class="con">
				<s:form action="addOrder.action" namespace="/order" method="post" >
					<input name="selectedCarIds" type="hidden" value="<s:property value="selectedCarIds"/>"/>
					<input name="goodsId" type="hidden" value="<s:property value="goodsId"/>"/>
				
				<div>
				<h3>车辆确认信息</h3>
				<table class="listTable">
					<tr>
						<th>车牌号</th>
						<th>起始地-目的地</th>
						<th>发车时间区间</th>
						<th>可载</th>
						<th>报价</th>
						<th>是否返程</th>
					</tr>
					<s:iterator var="bidCarInfo" value="selectedCars.bidCarInfoModels">														
						<tr>
							<td>
								<s:property value="#bidCarInfo.carNumber" />
							</td>
							<td>
								<s:iterator var="carRoute" value="#bidCarInfo.carRouteList"
									status="st">
									<huoyun:regionSelect type="view"
										provinceValue="${carRoute.startProvince }"
										cityValue="${carRoute.startCity}"
										townValue="${carRoute.startTown}" />-
   												<huoyun:regionSelect type="view"
										provinceValue="${carRoute.endProvince}"
										cityValue="${carRoute.endCity}"
										townValue="${carRoute.endTown}" /><br/>
								</s:iterator>
							</td>
							<td>
								始:<s:property value="#bidCarInfo.starttime" />
								<br>
								终:<s:property value="#bidCarInfo.endtime" />
							</td>
							<td>
								<s:property value="#bidCarInfo.loadAmount" />
								<huoyun:customSelect value="${bidCarInfo.unit }"
									mode="measureType" type="view" />
							</td>
							<td><s:property value="#bidCarInfo.bidInfoPrice" />元</td>
							<td>
								<s:if test="#bidCarInfo.retour==0">是</s:if>
								<s:elseif test="#bidCarInfo.retour==1">否</s:elseif>
							</td>
						</tr>
					</s:iterator>
				</table>
				</div>
				<div>
					<div>支付方式：<strong><input type="radio" name="payType" value="1"/>线上支付</strong>
					<strong><input type="radio" name="payType" value="2"/>货到付款</strong>
					</div>
				</div>
				<div>
					<div>总费用：<strong><s:property value="selectedCars.price"/>元</strong></div>
				</div>
				<div><input type="submit" value="提交订单"/></div>
				</s:form>
				</div>
				<!-- 中间 -->
				<!--右侧-->

				<!--右侧-->
			</div>
			<!--中由-->
		</div>
	</div>
	<div>
		<jsp:include page="/footer.jsp"></jsp:include>
	</div>
</body>
</html>